#include<stdio.h>
#include<string.h>
void printUsage(){
	printf("gcc xxx.c 2>&1 |filter\n");
}
char line[1024];
char *msg[32];
int msg_offs=0;
int main(int argc,char *argv[]){
	if(argc<2){
		int i;
		int offs=0;
		while((i=getchar())>=0){
			char ch=(char)i;
			if(ch=='\n'){
				*(line+offs)=0;
				printf("%s\n",line);
				if(offs==0){
					int hasErr=0;
					for(int index=0;index<msg_offs;index++){
						char *str=msg[index]
						
					}
				}else{
					char* str=malloc(offs);
					strcpy(str,line,offs);
					msg[++msg_offs]=str;
				}
				offs=0;
				
			}else{
				*(line+offs)=ch;
				offs++;
			}
		}
		*(line+offs)=0;
	}else printUsage();
}